package com.jblv.frame.common.es.param;

import java.io.Serializable;

/**
 * @author happyonion.yangtao
 * @version 1.0
 * @title SearchParam
 * @projectName jblv-frame
 * @packageName com.jblv.common.es.param
 * @description es 查询参数
 * @date Create at 2020/4/29 17:29
 * @since jdk1.8
 */

public class SearchParam implements Serializable {
    private static final long serialVersionUID = 1164084443887928132L;
    private String key;
    private Object value;
    private boolean isShould = false;

    public SearchParam(String key, Object value) {
        this.key = key;
        this.value = value;
        this.isShould = false;
    }

    public SearchParam(String key, Object value, boolean isShould) {
        this.key = key;
        this.value = value;
        this.isShould = isShould;
    }

    public String getKey() {
        return this.key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Object getValue() {
        return this.value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public boolean isShould() {
        return this.isShould;
    }

    public void setShould(boolean should) {
        this.isShould = should;
    }
}

